package com.tjbank.cssys.service.config.shiro.stateless.token;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Value;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 解析出的token
 */
@Data
@Accessors(chain = true)
public class TokenInfo implements Serializable {

    private static final long serialVersionUID = 4365301079641325282L;

    private String token;

    @Value("${shiro.sessionTimeout:1800}")
    private Integer expr;

    /** 用户ID **/
    private String userId;

    /** 用户代码 **/
    private String userCode;

    /** 用户姓名 */
    private String userName;

}
